package top.tangyh.lamp.care.vo.update;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Schema(description = "ChangeYxPipeUseRecordParam 导管使用记录查询条件")
public class ChangeYxPipeUseRecordParam implements Serializable {

    /**
     * 主键
     */
    @TableId
    @Schema(description = "管道信息主键")
    private Long id;


    @Schema(description = "拔管原因")
    private String reasonName;

    @Schema(description = "拔管原因")
    private String reasonCode;
    /**
     * 拔管人
     */
    @Schema(description = "拔管人")
    private String drawUserId;
    /**
     * 换管时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "换管时间")
    @NotNull(message = "换管时间不能为空")
    private LocalDateTime changeTime;
    /**
     * 换管地点
     */
    @Schema(description =  "换管地点")
    private String changePlaceName;


    @Schema(description =  "拔管时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime pullTime;

    @Schema(description =  "拔管人")
    private String pullUserName;


}